package com.nbsaas.boot.order.data.entity;

import com.nbsaas.boot.code.annotation.FormAnnotation;
import com.nbsaas.boot.jpa.data.entity.LongEntity;
import lombok.Data;
import org.hibernate.annotations.Comment;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

@org.hibernate.annotations.Table(appliesTo = "bs_order_invoice", comment = "订单开票信息")
@Data
@FormAnnotation(title = "订单发票")
@Entity
@Table(name = "bs_order_invoice")
public class OrderInvoice extends LongEntity {


    @Comment("关联订单ID")
    private Long orderId;

    @Comment("发票类型：1-增值税普通发票，2-增值税专用发票，3-其他类型")
    private Integer invoiceType;

    @Comment("发票抬头")
    private String invoiceTitle;

    @Comment("税号")
    private String taxNumber;

    @Comment("发票内容")
    private String invoiceContent;

    @Comment("发票金额")
    private BigDecimal invoiceAmount;

    @Comment("开票日期")
    private Date invoiceDate;

    @Comment("开票地址")
    private String billingAddress;

    @Comment("收件人姓名")
    private String receiverName;

    @Comment("收件人电话")
    private String receiverPhone;


}
